package com.zhhs.galaxyott.httpVolley.parser;

import org.json.JSONException;
import org.json.JSONObject;

import com.zhhs.galaxyott.httpVolley.response.BaseResponse;
import com.zhhs.galaxyott.httpVolley.response.getPayPlatformURLResponse;

/**
 * 是否是vip
 * 
 * 
 */
public class getPayPlatformURLParser extends BaseParser<getPayPlatformURLResponse> {

    @Override
    public BaseResponse parse(String jsonString) {
        getPayPlatformURLResponse mResponse = new getPayPlatformURLResponse();
        try {

            JSONObject json = new JSONObject(jsonString);
            parseMsg(json, mResponse);
            if (mResponse.errCode == 0) {

                mResponse.setPayurl(json.optString("payurl"));

            }
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return mResponse;
    }

}
